package edu.jsnu.service.ticket.seat.dao;

import edu.jsnu.service.ticket.seat.domain.Seat;
import org.apache.ibatis.annotations.Param;

public interface SeatMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Seat record);

    int insertSelective(Seat record);

    Seat selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Seat record);

    int updateByPrimaryKey(Seat record);

    Seat selectBySeatAndSchedule(@Param(value = "seatId")Integer seatId, @Param(value = "scheduleId")Integer scheduleId);

    Integer deleteByOrderId(@Param(value = "orderId")Integer orderId);
}